using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

public class ScoreController : MonoBehaviour
{

    private TextMeshProUGUI scoreText;
    private int CurrentScore = 10000;

    // Start is called before the first frame update
    void Start()
    {

        scoreText = GetComponent<TextMeshProUGUI>();
        scoreText.text = CurrentScore.ToString();
    }

    // Update is called once per frame
    void Update()
    {
        scoreText.text = CurrentScore.ToString();
    }

    public void ChangeScore(int score)
    {
        CurrentScore = CurrentScore + score;
    }
}
